<script type="text/javascript" src="includes/javascript/tiny.js"></script>
<script type="text/javascript" src="jquery/jquery-latest.js"></script>
<script type="text/javascript" src="jquery/jquery.validate.js"></script>
<script type="text/javascript" src="includes/javascript/frmregister.js"></script>
<script src="includes/javascript/jquery.validationEngine-en.js" type="text/javascript"></script>
<script src="includes/javascript/jquery.validationEngine.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<link rel="stylesheet" href="css/template.css" type="text/css" media="screen" title="no title" charset="utf-8" />
		

<script>	
$(document).ready(function() {
	$("#add_user").validationEngine()
});
// JUST AN EXAMPLE OF CUSTOM VALIDATI0N FUNCTIONS : funcCall[validate2fields]
function validate2fields(){
	if($("#fname").val() =="" ||  $("#lname").val() == ""){
		return false;
	}else{
		return true;
	}
}
</script>
<div style="padding:10px;">
                        <form name="add_user" id="add_user" enctype="multipart/form-data" method="post" action="add_user_process.php">

						<center>
									<table border="0" width="100%" cellspacing="0" cellpadding="2">				                               
<!-- 										<tr><td colspan="4" style="height:15px;"></td></tr>
 -->									<tr align="left">
											<td valign="top"><strong>Please Register with us...</strong></td>									
											
										</tr>
											
										

										<tr align="left">
											<td>Your Name :</td>

											<td class="login-textbox-bg"><input id="fname" type="text" class="login-textbox" class="validate[required] text-input" onkeypress="return disableEnterKey(event)" onblur="if(this.value =='')(this.value = 'First Name')" onclick="if(this.value =='First Name')(this.value = '')" value="First Name" name="fname">&nbsp;<input id="lname" type="text" class="login-textbox" onkeypress="return disableEnterKey(event)" onblur="if(this.value =='')(this.value = 'Last Name')" onclick="if(this.value =='Last Name')(this.value = '')" value="Last Name" name="lname"></td>
<!-- 										<td><input type="text" name="fname" value="FIRST NAME"> &nbsp;<input type="text" name="lname" value="LAST NAME"></td>-->
										</tr>
										 <tr>
                                     <td>ADDRESS:</td>
                                    <td><textarea rows="3" cols="25" name="address" id="address" class="validate[required] text-input"></textarea>  
                                    </td>
                                    
                                </tr>           

										<tr align="left">
											<td>Your E-Mail :</td>
											<td><input type="text" name="email" id="email" value=""></td>
										</tr>

										<tr align="left">
											<td>Company Name :</td>
											<td><input type="text" name="company_name" id="company_name" value=""></td>
										</tr>

										  <tr>
                                            <td>Telephone:</td>
                                             <td>
                                                <input type="text" name="code" id="code" style="width: 65px; margin-right: 5px; color:#000;" onblur="if(this.value=='') {this.value = 'STD Code';}" onfocus="if (this.value=='STD Code') {this.value = '';}" value="STD Code">
                                                
                                                                                              
                                                <input type="text" name="phoneNo" id="phoneNo" style="width: 144px;  color:#000;" onblur="if(this.value=='') {this.value = 'Phone Number';}" onfocus="if (this.value=='Phone Number') {this.value = '';}" value="Phone Number">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Mobile / Cell Phone:</td>
                                             <td>
										        <input type="text" name="mobNo" id="mobNo" style="width: 223px; margin-right: 5px;  color:#000;" onblur="if(this.value=='') {this.value = 'Mobile / Cell Phone Number';}" onfocus="if (this.value=='Mobile / Cell Phone Number') {this.value = '';}" value="Mobile / Cell Phone Number">
                                            </td>
                                        </tr>
										<tr>
                                    
                                    <td>USERNAME:</td>
                                    <td><input  type="text" name="username" id="username" class="validate[required] text-input"></td>
                                </tr>                                                                                               
								<tr>
								<td>PASSWORD:</td>
                                    <td><input  type="password" name="pwd" id="pwd" class="validate[required] text-input"></td>

								</tr>
          
                                <tr><td colspan="2" style="height:10px;"></tr>
										
										 <tr>
                                    <td colspan="3" align="center"><input type="submit" name="submit" value="Submit" onClick="return validate();" class="sub-butt"/></td>
                                </tr>
										
									 </table>
									</center>
                            
                            <!-- <table border="0" width="100%" cellspacing="0" cellpadding="2">						
                                <tr><td colspan="4" class="create" style="background-color:#999;color:#FFF"><strong>ADD USER</strong></td></tr>
								<tr><td colspan="4" style="height:15px;"></td></tr>
                                <tr>
                                    <td width="150">FIRST NAME :</td>
                                    <td><input  type="text" id="fname" name="fname" class="validate[required] text-input"></td>                                    
                                </tr>
                                
                                <tr>
                                    <td>LAST NAME:</td>
                                    <td><input  type="text" name="lname" id="lname"  class="validate[required] text-input">
                                    </td>
                                    
                                </tr>
                                <tr>
                                     <td>ADDRESS:</td>
                                    <td><textarea rows="3" cols="25" name="address" id="address" class="validate[required] text-input"></textarea>  
                                    </td>
                                    
                                </tr>                                  
                                <tr>
                                    <td>PHONE:</td>
									<td><input  type="text" name="phone" id="phone" class="validate[required,custom[phone]] text-input">
                                    </td>   
                                </tr>				
                                
                                <tr>
                                    <td>MOBILE:</td>
                                    <td><input  type="text" name="mobile" id="mobile" class="validate[required,custom[phone]] text-input">
                                    </td>   
                                </tr> 				
                                      
                                <tr>
                                    
                                    <td>USERNAME:</td>
                                    <td><input  type="text" name="username" id="username" class="validate[required] text-input"></td>
                                </tr>                                                                                               
								<tr>
								<td>PASSWORD:</td>
                                    <td><input  type="password" name="pwd" id="pwd" class="validate[required] text-input"></td>

								</tr>
          
                                <tr><td colspan="2" style="height:10px;"></tr>						
                                <tr>
                                    <td colspan="3" align="center"><input type="submit" name="submit" value="Submit" onClick="return validate();" class="sub-butt"/></td>
                                </tr>
                            </table> -->
                        </form>
</div>